package com.lavegue.service;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.MatchMode;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.Restrictions;

import com.lavegue.common.Page;
import com.lavegue.common.Service;
import com.lavegue.dao.ManageMsgDao;
import com.lavegue.model.ManageMsg;
import com.lavegue.model.Msg;
import com.lavegue.model.UserInfo;

/**
 * author: luoweibin
 * date:2011-12-29
 * description:
 *
 */
public interface ManageMsgService  extends Service<ManageMsg, Integer, ManageMsgDao> {

	public Page<ManageMsg> findPage(int maybeSend,Date startTime, Date endTime,
			String title, int type, int group, int pageNo, int pageSize);
	
	public Page<ManageMsg> findPageByTypeAndGroup(int type, int group,
			int pageNo, int pageSize,  UserInfo user, String title);
	//tzf 首页模糊查询根据标题
	public Page<ManageMsg> findManageMsgByContent(int pageNo,int pageSize,int typeid,String likeName);
	
	public List<ManageMsg> findRandomList(int number);
}

